﻿using AIO.Entity.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIO.Entity
{
    /// 设备报备
    [Table("BZ01")]
    public class Reporting : BaseEntity
    {
        /// <summary>
        /// 报备名
        /// </summary>
        [Required]
        [Column("BZ001"), MaxLength(100)]
        public string? Reportname { get; set; }
        /// <summary>
        /// 报备数量
        /// </summary>
        [Required]
        [Column("BZ002"), MaxLength(100)]
        public int? Reportedquantity { get; set; }
        /// <summary>
        /// 报备日期
        /// </summary>
      
        [Column("BZ003")]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}"
            , ApplyFormatInEditMode = true)]
        public DateTime? Reportdate { get; set; }
    }
}
